//
//  CXBaseService.h
//  Codex
//
//  Created by ChenJie on 01/02/2018.
//  Copyright © 2018 Mist. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "CXWebDriver.h"

@interface CXBaseService : NSObject

- (NSURLSessionDataTask *)post:(NSString *)url
                    parameters:(NSDictionary *)parameters
                       success:(WebDriverSuccessCallback)success
                       failure:(WebDriverFailureCallback)failure;

- (NSURLSessionDataTask *)post:(NSString *)url
                    parameters:(NSDictionary *)parameters
                      progress:(WebDriverProgressCallback)progress
                       success:(WebDriverSuccessCallback)success
                       failure:(WebDriverFailureCallback)failure;

@end
